4 /****************************** Module Header ******************************\
5 * Module Name: Web.Debug.config
6 * Project: CSSL4SessionCookie
7 * Copyright (c) Microsoft Corporation.
9 This is a machine generated debug version of web.config for the sample web site, and has not been modified from its original form.
11 * This source is subject to the Microsoft Public License.
12 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
13 * All other rights reserved.
15 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
16 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
18 \***************************************************************************/
22 <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
24 <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
26 In the example below, the "SetAttributes" transform will change the value of
27 "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
28 finds an atrribute "name" that has a value of "MyDB".
32 connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
33 xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
38 In the example below, the "Replace" transform will replace the entire
39 <customErrors> section of your web.config file.
40 Note that because there is only one customErrors section under the
41 <system.web> node, there is no need to use the "xdt:Locator" attribute.
43 <customErrors defaultRedirect="GenericError.htm"
44 mode="RemoteOnly" xdt:Transform="Replace">
45 <error statusCode="500" redirect="InternalError.htm"/>